package com.wfw.feichat.netty;

import com.google.common.collect.Maps;
import io.netty.channel.Channel;

import java.util.HashMap;

/**
 * 用户id和channel的关联关系处理
 *
 * @author: wfw
 * @date: 2019/05/23
 */
public class UserChannelRel {
    private static HashMap<String, Channel> relManager= Maps.newHashMap();

    public static void put(String senderId,Channel channel){
        relManager.put(senderId, channel);
    }

    public static Channel get(String senderId) {
        return relManager.get(senderId);
    }
}
